package com.nebula.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.nebula.pojo.Order;

public interface OrderMapper {
    int deleteByPrimaryKey(Long orderNo);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long orderNo);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    Order selectByUsernameAndOrderNo(@Param("username") String username,@Param("orderNo")Long orderNo);
    
    Order selectByOrderNo(Long orderNo);
    
    List<Order> selectOrderInfoByUsername(String username);
}